from .BaseOdbc import ODBC

class MsAccess(ODBC):
    """
    用于操作 Microsoft Access 数据库 (继承 ODBC).
    """

    def __init__(this, Database):
        strEnginName = 'Microsoft Access'
        this._MsAccess__Driver = super().SelectDriver(strEnginName + ' Driver')
        super().__init__(this._MsAccess__Driver, 
                         strEnginName,
                         Driver = this._MsAccess__Driver,
                         Dbq = Database)

    @property
    def Driver(this):
        """
        ##################
        属性: 驱动 (只读).
        ##################
        """
        return this._MsAccess__Driver